<?php

declare(strict_types=1);

namespace app\common\model;

use think\Model;

class ChannelModel extends Model
{
    protected $table = 'channel';

    /**
     * 获取新闻频道
     * @return \think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getChannelList()
    {
        return $this->where('status',config('status.normal'))->order('id','asc')->select();
    }
}
